package hzjbbis.framework.workflow.entity;

import java.util.ArrayList;
import java.util.List;

import hzjbbis.framework.workflow.persistence.Entity;

public class Descriptor extends Entity {
    private Long id;

    private String name;

    private String description;

    private List steps = new ArrayList();
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String string) {
        description = string;
    }

    public List getSteps() {
        return steps;
    }

    public void setSteps(List steps) {
        this.steps = steps;
    }
    
    public void addStepControl(StepControl stepControl) {
        stepControl.setDescriptor(this);
        steps.add(stepControl);
    }
}
